(function($) {
    var init={
    		
    		"aoColumns" : [
    		               {"data":"id","bVisible":false},
                           {
                        	   "data" : "name",
                        	   "render": function(data, type, full) {
                        		   var str=JSON.stringify(full);
                        		   var json=JSON.parse(str)
                                 return "<span class='pull-right'><a><i class='fa fa-trash-o m-l-sm'></i></a>" +
                                 		"<a href=' /creatives/landing_pages/edit/"+json.id+"'><i class='fa fa-pencil-square-o m-l-sm'></i></a>" +
                                 		"<a><i class='fa fa-eye m-l-sm'></i></a></span>"+data;
                                 },
                        	   },
                           { "data" : "template"},
                           {"data" : "createTime"},
                       ],
             "sAjaxSource": "/creatives/landing_pages",//这个是请求的地址
    }
    $(function(){ 
        $.extend(init,dataTableInit)
        $("#creativesTable").dataTable(init);
    })
})($);